// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'StandardWorkId',
        footer: "Foots",
        cnName: '标准作业',
        name: 'StandardWork',
        newTabEdit: false,
        url: "/StandardWork/",
        sortName: "StandardWorkId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillNo":"","BillName":"","WorkPriority":"","StandardWorkPeriod":"","WorkPeriodUnit":"","ChargePerson":"","MaintainWorkTypeName":"","Remark":""};
    const editFormOptions = [[{"title":"作业编码","field":"BillNo","type":"text"},
                               {"title":"作业名称","field":"BillName","type":"text"},
                               {"dataKey":"作业优先级","data":[],"title":"作业优先级","field":"WorkPriority","type":"select"},
                               {"title":"标准工期","field":"StandardWorkPeriod","type":"decimal"}],
                              [{"dataKey":"工期单位","data":[],"title":"工期单位","field":"WorkPeriodUnit","type":"select"},
                               {"dataKey":"职员","data":[],"title":"负责人","field":"ChargePerson","type":"select"},
                               {"title":"维护类型","field":"MaintainWorkTypeName","type":"text"},
                               {"title":"备注","field":"Remark","type":"textarea"}]];
    const searchFormFields = {"BillNo":""};
    const searchFormOptions = [[{"title":"作业编码","field":"BillNo","type":"like"}]];
    const columns = [{field:'StandardWorkId',title:'标准作业标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BillNo',title:'作业编码',type:'string',link:true,width:110,align:'left'},
                       {field:'BillName',title:'作业名称',type:'string',width:120,align:'left'},
                       {field:'WorkPriority',title:'作业优先级',type:'int',bind:{ key:'作业优先级',data:[]},width:110,align:'left'},
                       {field:'StandardWorkPeriod',title:'标准工期',type:'decimal',width:110,align:'left'},
                       {field:'WorkPeriodUnit',title:'工期单位',type:'int',bind:{ key:'工期单位',data:[]},width:110,align:'left'},
                       {field:'ChargePerson',title:'负责人',type:'int',bind:{ key:'职员',data:[]},width:110,align:'left'},
                       {field:'MaintainWorkTypeId',title:'维护类型标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'MaintainWorkTypeName',title:'维护类型',type:'string',width:120,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:110,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'}];
    const detail =  {
                    cnName: '任务工序',
                    table: 'StandardWorkDetail',
                    columns: [{field:'StandardWorkDetailId',title:'标准作业明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'StandardWorkId',title:'标准作业标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'TaskSequence',title:'任务顺序',type:'string',width:110,edit:{type:'text'},align:'left'},
                       {field:'TaskName',title:'任务名称',type:'string',width:110,edit:{type:'text'},align:'left'},
                       {field:'DeviceId',title:'设备标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'DeviceNumber',title:'设备编码',type:'string',width:120,edit:{type:'text'},align:'left'},
                       {field:'DeviceName',title:'设备名称',type:'string',width:120,readonly:true,edit:{type:'text'},align:'left'},
                       {field:'DeviceClassfiyId',title:'设备分类',type:'int',bind:{ key:'设备分类级联',data:[]},width:110,readonly:true,edit:{type:'cascader'},align:'left'},
                       {field:'DeviceSpec',title:'规格型号',type:'string',width:120,readonly:true,edit:{type:''},align:'left'},
                       {field:'DeviceSize',title:'尺寸',type:'string',width:120,readonly:true,edit:{type:''},align:'left'},
                       {field:'TaskStandardType',title:'任务标准类型',type:'int',bind:{ key:'任务标准类型',data:[]},width:110,edit:{type:'select'},align:'left'},
                       {field:'TaskStandardValue',title:'标准值',type:'string',width:110,edit:{type:'text'},align:'left'},
                       {field:'StandardValueUnit',title:'标准值单位',type:'string',width:110,edit:{type:'text'},align:'left'},
                       {field:'DefaultExecutor',title:'默认执行人',type:'int',bind:{ key:'职员',data:[]},width:110,edit:{type:'select'},align:'left'},
                       {field:'StandardWorkPeriod',title:'标准工期',type:'decimal',width:110,edit:{type:'decimal'},align:'left'},
                       {field:'WorkPeriodUnit',title:'工期单位',type:'int',bind:{ key:'工期单位',data:[]},width:110,edit:{type:'select'},align:'left'},
                       {field:'UnitWorkPeriodCost',title:'单位工期费用',type:'decimal',width:110,edit:{type:'decimal'},align:'left'},
                       {field:'StandardWorkPeriodCost',title:'标准工期费用',type:'decimal',width:110,edit:{type:'decimal'},align:'left'}],
                    sortName: 'StandardWorkDetailId',
                    key: 'StandardWorkDetailId'
                                            };
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}